package com.api.user.dao;

import com.api.common.mybatis.ResultMap;
import com.api.core.ApiMapper;
import com.api.user.model.CommodityOrder;
import com.api.user.vo.CommodityOrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CommodityOrderMapper extends ApiMapper<CommodityOrder> {
    List<CommodityOrderVo> orderUserList(@Param("params") Map<String, Object> params, @Param("order") Map<String, Object> orderParams );

    Map<String, Object> statistics(@Param("params") Map<String, Object> params);

    Map<String, Object> statisticsState(@Param("params") Map<String, Object> params);

    List<ResultMap<String, Object>> analysis(@Param("type")Integer type);

    List<ResultMap<String, Object>> dayAnalysis();
}